//
//  DealerDataManage.h
//  WGFGlobalHouses
//
//  Created by welldone on 15/5/14.
//  Copyright (c) 2015年 waiguofang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "BaseDataManage.h"
#import "AFNetworking.h"
#import "API.h"
#import "Connect.h"
#import "SingletonData.h"
#import "MBProgressHUD+MJ.h"
#import "UserInfoData.h"
#import "CommissionData.h"
#import "StoreCommission.h"
#import "StoreCommissionBroker.h"



typedef NS_ENUM(NSInteger, Commission_tab) {
    Commission_tab0 = 0,
    Commission_tab1 = 1,
    Commission_tab2 = 2
   };

typedef NS_ENUM(NSInteger, CELL_STYLE) {
    CELL_STYLE_HEAD = 0,
    CELL_STYLE_CELL = 1
};



//经销商数据管理
@interface DealerDataManage : BaseDataManage

+(void)saveUserInfo:(UserInfoData*)data;

+(UserInfoData*)getUserInfo;


-(ResulteMod*)refreshCommissionHeadData:(NSDictionary*)dic;

-(ResulteMod*)refreshUserInfo;


-(void)upUserInfo:(UserInfoData*)data withCallBack:(FinishCallBack)block;


//用户中心 上传头像
-(void)upHeadImg:(UIImage*)img View:(UIButton*)head;


//佣金管理
-(void)refreshYongJinDataTableIndex:(Commission_tab)tab withParm:(NSMutableDictionary*)parmDic CallBack:(FinishCallBack)block;

//佣金统计
-(void)refreshYongJinListDataPageIndex:(int)page parm:(NSMutableDictionary*)dic tableIndex:(Commission_tab)tab CallBack:(FinishCallBack)block;


//门店佣金
-(void)refreshStoreCommissionDataCallBack:(FinishCallBack)block;


//门店佣金详情
-(void)refreshStoreCommissionDetailData:(int)page storeId:(NSString*)code  CallBack:(FinishCallBack)block;


//门店佣金统计-个人佣金统计
-(void)refreshBrokerCommissionDetailData:(int)page data:(NSDictionary*)data  CallBack:(FinishCallBack)block;



//佣金管理 经纪人佣金
-(void)refreshBrokerCommissionListData:(int)page CallBack:(FinishCallBack)block;









@end
